﻿@model SRF.Admin.Models.DataRuleItem
@{
    Layout = "~/Views/Shared/_EditDialog.cshtml";  
}
@using SRF.UI.Html
@section header{
    <script type="text/javascript" language="javascript">
        function onComplete() {
            $.dialog.close("ok");
        }
        function onDialogClose(msg) {
            $.ajaxSubmit();
        } 
    </script>
}
@using (Ajax.BeginForm("ItemEdit", null, new AjaxOptions() { HttpMethod = "Post", OnComplete = "onComplete" }, new { @class = "form-horizontal" }))
{   
    @Html.HiddenFor(m => m.Id)
    @Html.HiddenFor(m => m.DataRuleId)
    <table>
        <tr>
            <td>
                <label class="control-label" for="Name">
                    规则项名称:</label>
                @Html.TextBoxFor(m => m.Name)
            </td>
            <td>
                <label class="control-label" for="Rank">
                    排序:</label>
                @Html.TextBoxFor(m => m.Rank, new { @class = "textbox-smaller",maxlength="3" })
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <label class="control-label" for="Condition">
                    过滤条件:</label>
                @Html.TextBoxFor(m => m.Condition, new { @class = "textbox-larger" })
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <label class="control-label" for="Remark">
                    备注:</label>
                @Html.TextBoxFor(m => m.Remark, new { @class = "textbox-larger" })
            </td>
        </tr>
    </table>
}